package com.asp.aspchain.core.util;

import javax.mail.Authenticator;
/**
 * @author yuanchong
 */
import javax.mail.PasswordAuthentication;
public  class  PopupAuthenticator  extends  Authenticator{
      String username = null ;
      String password = null ;
       public  PopupAuthenticator(){}
      
       public  PopupAuthenticator(String name,String pwd){
	      username  =  name;
	      password  =  pwd;
	      getPasswordAuthentication();
      }
       @Override
       protected  PasswordAuthentication getPasswordAuthentication() {
         return   new  PasswordAuthentication(username, password);
      }       
}
